a3cc414f5082fdc561e13c6528d75de2023446af,org.dawnsci.persistence/src/org/dawnsci/persistence/internal/PersistentFileImpl.java,PersistentFileImpl,setRegionAttribute,#String#String#String#,213
Before Change
public void setRegionAttribute(String regionName, String attributeName, String attributeValue) throws Exception {
if ("JSON".equals(attributeName))
throw new Exception("Cannot override the JSON attribute!");
final HObject node = (HObject) file.getData(PersistenceConstants.ROI_ENTRY + "/" + regionName);
file.setAttribute(node.getFullName(), attributeName, attributeValue);
}
After Change
public void setRegionAttribute(String regionName, String attributeName, String attributeValue) throws Exception {
if ("JSON".equals(attributeName))
throw new Exception("Cannot override the JSON attribute!");
final DataNode node = file.getData(PersistenceConstants.ROI_ENTRY + "/" + regionName);
file.addAttribute(node, new AttributeImpl(attributeName, attributeValue));
}